package wykop.analyze;

import static com.google.common.collect.Lists.newArrayList;
import wykop.page.WykopComment;

public class CommentWordLength extends NumericCommentFeature {

	@Override
	public String name() {
		return "WordLength";
	}

	@Override
	public int value(final WykopComment comment) {
		return newArrayList(WordBreaker.tokens(comment.getText())).size();
	}

}
